package link.anycar.study.java8;

import link.anycar.study.java8.helper.InterfaceWithDefault;
import link.anycar.study.java8.helper.InterfaceWithStatic;

public class DefaultStaticInterface {

    public static void main(String[] args) {
        DefaultStaticInterface dsi = new DefaultStaticInterface();
        dsi.syntax();
    }

    public void syntax() {
        InterfaceWithDefault iwd = () -> {
            System.out.println("Hello world");
        };
        iwd.action();
        iwd.execute();

        InterfaceWithStatic iws = InterfaceWithStatic.makeInterface();
        iws.action();
    }

}
